﻿
//新增产品规划
var fnCustomAdd = function () {
    if (fkey != '00000000-0000-0000-0000-000000000000') {
        //document.getElementById("EditUIWindow").src = "../Crm/MeetingArrange/CourseLayoutDetail.aspx?productId=" + fkey + "&r=" + Math.random() + "&entity=V_CrmProductLayout";
        //SetMaxDWH(YAHOO.example.container.dialog1);
        //YAHOO.example.container.dialog1.show();         
        var pagetitle = "新增产品规划";
        parent.$("#tabs").tabs('close', pagetitle);
        parent.addTabs(pagetitle, "../Crm/MeetingArrange/CourseLayoutDetail.aspx?productId=" + fkey + "&r=" + Math.random() + "&entity=V_CrmProductLayout&title=" + encodeURI(pagetitle) + "");
    }
    else {
        alert('请先选择产品');
    }
}

//修改产品规划
var fnCustomEdit = function () {
    //document.getElementById("EditUIWindow").src = "../Crm/MeetingArrange/CourseLayoutDetail.aspx?r=" + Math.random() + "&id=" + record.getData(const_entityID);
    //SetMaxDWH(YAHOO.example.container.dialog1);
    //YAHOO.example.container.dialog1.show();
    var pagetitle = '修改产品规划';
    parent.$("#tabs").tabs('close', pagetitle);
    parent.addTabs(pagetitle, "../Crm/MeetingArrange/CourseLayoutDetail.aspx?r=" + Math.random() + "&entity=V_CrmProductLayout&title=" + encodeURI(pagetitle) + "&id=" + record.getData(const_entityID));
}

//设置课程规划权限
var fnSetLayoutRole = function () {
    //document.getElementById("EditUIWindow").src = "";
    //SetMaxDWH(YAHOO.example.container.dialog1);
    //YAHOO.example.container.dialog1.show();
    var pagetitle = '课程规划权限设置';
    parent.$("#tabs").tabs('close', pagetitle);
    parent.addTabs(pagetitle, "../Crm/MeetingArrange/SetCourseLayoutRole.aspx?r=" + Math.random() + "&title=" + encodeURI(pagetitle) + "");
}

